package com.yyhn.guilimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yyhn.common.utils.PageUtils;
import com.yyhn.guilimall.product.entity.CategoryEntity;
import com.yyhn.guilimall.product.vo.web.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author wanjiaceng
 * @email wanjiaceng@gmail.com
 * @date 2020-12-03 20:23:26
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listwithther();

    void categoryRemoveByIds(Long[] catIds);
    //找到catelogId的完整路径;
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
    //遍历一级分类
    List<CategoryEntity> getLeve1CategoryList();

    Map<String, List<Catelog2Vo>> getCatelogJson();
}

